STEP 5: Rather than repeating this code over and over, let's make a custom block!

  • Highlight the LAST TWO lines of code you wrote to make your sprite move and turn left. Copy the code.
  • Then, follow these directions to create your own custom block.
  • In the title space, type Turn and Move. Paste your code inside your new block. Click Save.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)